﻿using SIG.Core;
using SIG.Resources.Admin;
using System.Collections.Generic;

namespace SIG.Model.Emails
{
    public class EmailAccount : AuditableEntity<int>
    {
        public EmailAccount()
        {
            this.EntityName = EntityNames.EmailAccount;
            this.EmailTemplates = new HashSet<EmailTemplate>();
        }
        public string Email { get; set; }
        public string SmtpServer { get; set; }
        public int Port { get; set; }
        public string UserName { get; set; }
        public string Password { get; set; }       
        public bool EnableSsl { get; set; }
        public bool IsDefault { get; set; }

        public virtual ICollection<EmailTemplate> EmailTemplates { get; set; }

    }
}
